import { makeAutoObservable } from 'mobx';
import * as playListApi from '../api/play-list';

export default new class PlayList {

    constructor() {
        makeAutoObservable(this);
    }

    // 精品歌单
    highquality = [];

    // 更新精品歌单
    *updateHighquality() {
        const res = yield playListApi.getHighquality();
        this.highquality = res;
    }

}